package com.eliza.music.model.tmp

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.AccountBox
import androidx.compose.material.icons.rounded.AccountCircle
import androidx.compose.material.icons.rounded.Add
import androidx.compose.material.icons.rounded.Build
import androidx.compose.material.icons.rounded.Create
import androidx.compose.material.icons.rounded.Delete
import androidx.compose.material.icons.rounded.LocationOn
import androidx.compose.material.icons.rounded.Person
import androidx.compose.material.icons.rounded.Search
import androidx.compose.material.icons.rounded.Settings
import androidx.compose.material.icons.rounded.Share
import androidx.compose.material.icons.rounded.Star
import androidx.compose.material.icons.rounded.ThumbUp
import androidx.compose.material3.Switch
import androidx.compose.material3.SwitchDefaults
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.scale
import androidx.compose.ui.graphics.Color
import com.eliza.music.model.entity.BtnGroup
import com.eliza.music.model.entity.BtnIcon

val ArrBtnGroup = arrayOf(
    BtnGroup(
        "经典", Icons.Rounded.Share, children = listOf(
            BtnIcon("Theme", Icons.Rounded.ThumbUp),
            BtnIcon("Zoom", Icons.Rounded.AccountBox),
            BtnIcon("UI", Icons.Rounded.Build),
        )
    ), BtnGroup(
        "样式", Icons.Rounded.Star, children = listOf(
            BtnIcon("深色模式", Icons.Rounded.Star, content = {
                var switch2Checked by remember { mutableStateOf(false) }
                Switch(
                    checked = switch2Checked,
                    modifier = Modifier.scale(0.7f),
                    onCheckedChange = {
                        switch2Checked = it
                    },
                    colors = SwitchDefaults.colors(checkedTrackColor = Color.Red)
                )
            }),
            BtnIcon("个性装扮", Icons.Rounded.Build),
            BtnIcon("边听边存", Icons.Rounded.Create),
        )
    ), BtnGroup(
        "Plugin", Icons.Rounded.Person, children = listOf(
            BtnIcon("查询", Icons.Rounded.Search),
            BtnIcon("添加", Icons.Rounded.Add),
        )
    ), BtnGroup(
        "Tools", Icons.Rounded.Person, children = listOf(
            BtnIcon("Actions On Save", Icons.Rounded.Search),
            BtnIcon("SSH", Icons.Rounded.Add),
            BtnIcon("JPA", Icons.Rounded.Add),
            BtnIcon("Code With Me", Icons.Rounded.Add),
            BtnIcon("Rsync", Icons.Rounded.Add),
            BtnIcon("Startup", Icons.Rounded.Add),
        )
    ), BtnGroup(
        "", Icons.Rounded.Settings, children = listOf(
            BtnIcon("客服", Icons.Rounded.AccountCircle),
            BtnIcon("工具", Icons.Rounded.Delete),
            BtnIcon("黑名单", Icons.Rounded.LocationOn),
        )
    )
)
